#ifndef __CZF_MOCK_PROVIDER_H__
#define __CZF_MOCK_PROVIDER_H__

#include "../interface/TickerContentIF.h"

#define MOCK_ITEMS 4

class CMockProvider : public INewsContentProvider
{
public:
	CMockProvider ();
	virtual ~CMockProvider ();
	// Use MockNumber to identify different MockProvider's 
	int SetMockNumber(int nbr);

public:
	virtual void GetNextNewsItem(NewsItem** ppItem);
	virtual void ReleaseNewsItem(NewsItem* pItem);
	virtual void Tick();
	virtual size_t GetURLSize();
	virtual int GetURL(char* url_buf, size_t bufsize);

protected:
	int m_nMockNumber;
	NewsItem	m_Items[MOCK_ITEMS];
	unsigned int m_nCurItem;
};


#endif /* __CZF_MOCK_PROVIDER_H__*/